/**
 * 
 */
package messages;

import java.awt.geom.Point2D;

/**
 * This message is sent when focal intersects with new cells.
 * 
 * @author Xiaohui
 * 
 */
public class Msg_o2s_focalMove extends Message {

	public Msg_o2s_focalMove(int ts, int queryid, Point2D senderLoc) {
		super();
		// focal overlap with a new cell
		this.messageType = MessageTypes.o2s_focalMove;
		this.timepoint = ts;
		this.senderID = queryid;
		this.msgLoc = senderLoc;
	}

	public String toString() {
		String s;
		s = this.timepoint + " " + this.messageType + " " + this.senderID + " "
				+ formatter.format(this.msgLoc.getX()) + " "
				+ formatter.format(this.msgLoc.getY());
		return s;
	}
}
